import { POST } from '@/http';
import { DELETE, UPLOAD } from '@http/index';

// export const uploadImg = ({ data, params }) => {
//     console.log(data);
//     return UPLOAD({
//         url: "/file/uploadOtherImg",
//         params,
//         data
//     })
// }

export const deleteImg = (id) => {
  return DELETE({
    url: '/file/deleteTeaImg',
    params: {
      id
    }
  });
};

export const uploadExcel = (data) => {
  console.log(data);
  return UPLOAD({
    url: '/upload/uploadFile',
    data
  });
};
